{{partial('public/header')}}
<div class="midder">
<div class="mc">
	<div class="cleft">
    
{% if strNote['userid'] != visitor['userid'] %}
{{partial('index/user_header')}}  
<div class="clear"></div>
{% endif %}   
 
    	<div class="note-header">
        	<h1>{{strNote['title']}}</h1>
        	<div><span class="pl">{{date('Y-m-d H:i:s',strNote['addtime'])}} &nbsp;被 {{strNote['count_view']}} 人浏览</span></div>
    	</div>
    
    	<div id="link-report" class="note">
            {% cache "note-body-" ~ strNote['noteid'] %}
            {{strNote['content'] | nl2br}}
            {% endcache %}        
        </div>
    	<br>
		<div class="note-ft">
        	{% if strNote['userid'] == visitor['userid'] %}
            <div class="note_upper_footer">
                    <span class="pl gtleft">&nbsp;{{strNote['count_view']}} 人浏览</span>
                    <span class="gtleft">&gt; <a href="{{url('space/notes/edit/'~strNote['noteid'])}}">修改</a>&nbsp; &nbsp; </span>
                    <span class="gtleft">&gt; <a   title="删除这篇日记吗?"  href="{{url('space/notes/delete/'~strNote['noteid'])}}" onClick="return confirm('删除这篇日记吗?')">删除</a></span>
            </div>
            {% endif %}
        </div>        

	<div class="mod">
      <!--公共SNS组件-->	
      {{hook('SnsBar','show',['visitor':visitor, 'params':snsparams])}} 
          
    </div>

    <div class="mod">
       {{hook('Comment','show',['visitor':visitor, 'params':params])}}
    </div>

    	
    </div><!--//cleft-->
    <div class="cright">
		<div class="mod">
	        <h2>
	       {% if visitor['userid'] == strNote['userid'] %}我的最新日记 {% else %} {{strUser['username']}}的最新日记{%endif%}
	            &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
	            <span class="pl">&nbsp;(<a  href="{{url('space/'~strUser['doname']~'/notes/')}}">全部</a>) </span>
	    	</h2>
            {% if arrNotes %}
			<ul class="note-list">
            	  
            	  <foreach name="arrNotes" item="item"> 
                  {% for item in arrNotes %}
			      	<li><a href="{{url('space/notes/show/'~item['noteid'])}}" title="{{item['title']}}">{{item['title']}}</a></li>
                  {% endfor %}
                  
            </ul>
            {% else%} 
            <p>暂时还没有发表的日记...</p>
            {% endif %}      
		</div>
        
    </div><!--//right-->
</div>
</div>
